package com.chandra.pos.dao;


import com.chandra.pos.dao.entity.RoleEntity;
import com.chandra.pos.dao.entity.UserRoleEntity;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * UserEntity: chkumar
 * Date: 6/1/12
 * Time: 10:37 AM
 * To change this template use File | Settings | File Templates.
 */
public interface RoleDAO {


    public RoleEntity getRole(long roleId);

    public RoleEntity saveRole(RoleEntity roleEntity);

    public RoleEntity updateRole(RoleEntity roleEntity);

    public List<RoleEntity> searchRoleByName(String name);

    public List<RoleEntity> getRoles(int start, int resultSize);

    public UserRoleEntity addUserRole(UserRoleEntity userRoleEntity);

    public boolean removeUserRole(UserRoleEntity userRoleEntity);
}
